import request from "@/utils/request";

export interface reqCategoryType{
    id:number,
    name:string,
    category1Id?:number
    category2Id?:number
}
export type reqCategoryListType = reqCategoryType[]

export const reqCategory1List = ()=>{
    return request.get<null,reqCategoryListType>(`/admin/product/getCategory1/`)
}
export const reqCategory2List = (category1Id:number)=>{
    return request.get<null,reqCategoryListType>(`/admin/product/getCategory1/${category1Id}`)
}
export const reqCategory3List = (category2Id:number)=>{
    return request.get<null,reqCategoryListType>(`/admin/product/getCategory1/${category2Id}`)
}